package lab.gene.history.action;

import java.util.List;

import lab.gene.pojo.GeneImageFile;
import lab.gene.service.impl.GeneImageFileServiceImpl;

public class ViewImageFileHistoryAction {
	
	@SuppressWarnings("unused")
	private static final long serialVersionUID = 1L;
	private List<GeneImageFile> imageList = null;
	private String geneName = null;
	
	
	public String execute() {
		GeneImageFileServiceImpl service = new GeneImageFileServiceImpl();
		imageList = service.getAllGeneImageFilesByGeneName(geneName);
		//System.out.println("action size:"+imageList.size());
		return "success";
	}

	public List<GeneImageFile> getImageList() {
		return imageList;
	}
	public void setImageList(List<GeneImageFile> imageList) {
		this.imageList = imageList;
	}
	public String getGeneName() {
		return geneName;
	}
	public void setGeneName(String geneName) {
		this.geneName = geneName;
	}

	

}
